<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// [ 应用入口文件 ]
phpinfo();
if (!defined('__PUBLIC__')) {
    $_public = rtrim(dirname(rtrim($_SERVER['SCRIPT_NAME'], '/')), '/');
    define('__PUBLIC__', (('/' == $_public || '\\' == $_public) ? '' : $_public).'');
}
define("ROOT_WWW", dirname(__DIR__));
// 定义应用目录
define('APP_PATH', ROOT_WWW . '/app/');
define('DATA_PATH',  ROOT_WWW.'/public/runtime/Data/');
//插件目录
define('PLUGIN_PATH', ROOT_WWW . '/plugins/');
define('DOMAIN_URI', $_SERVER['REQUEST_SCHEME'] == 'https' ? 'https://'.$_SERVER['HTTP_HOST'] : 'http://'.$_SERVER['HTTP_HOST']);
// 加载框架引导文件
require ROOT_WWW . '/think/start.php';
